import request from '@/utils/request'

export function del(ids) {
  return request.post('/notice/delete', ids)
}

export function changeSelectHandle(val) {
  return request.get('/student/listByClassId/' + val)
}

export function getTableData(title, current, size) {
  return request.get('/notice/list4Teacher', { params: { title, current, size } })
}

export function getListClasses() {
  return request.get('/teacher/listClasses')
}

export function submitEditForm(editForm) {
  return request.post('/notice/' + (editForm.id ? 'update' : 'save'), editForm)
}

